<?php
use Application\Model\vn3dUtil;

?>
<ol class="breadcrumb">

	<li class="active">Order</li>
</ol>
<div class="panel panel-primary">
	<div class="panel-heading">
		<h3 class="panel-title">Order</h3>
	</div>
	<div class="panel-body" style="overflow: scroll;">

		<!-- Table -->
		<table class="table" style="width: 1600px;">
			<thead>
				<tr>
					<th>#</th>
					<!-- 					<th>ID</th> -->
					<th>Price</th>
					<th>Link download</th>
					<th>Payer Status</th>
					<th>Token</th>
					<th>PayerId</th>
					<th>First name</th>
					<th>Last Name</th>
					<th>Email</th>

					<th>Staus</th>
				</tr>
			</thead>
			<tbody>
            <?php
            $k = 0;
            foreach ($orders as $key => $vn3dorder) :
                $k ++;
                // var_dump($currentpage);
                // var_dump($vn3dorder);
                ?>



                 <tr>
					<td><?php echo $k+(5*($currentpage-1))?></td>

					<td>$<?php echo $vn3dorder->total_price;  ?>.00</a></td>
					<td><a
						href="/store/download-product?securitycode=<?php echo $vn3dorder->security_code;  ?>">Download</td>
					<td><?php echo $vn3dorder->payerstatus;  ?></td>
					<td><?php echo $vn3dorder->token;  ?></td>
					<td><?php echo $vn3dorder->payerid;  ?></td>
					<td><?php echo $vn3dorder->first_name;  ?></td>
					<td><?php echo $vn3dorder->last_name;  ?></td>
					<td><?php echo $vn3dorder->email_address;  ?></td>
					<td><?php echo $vn3dorder->status;  ?></td>


				</tr>



<?php endforeach; ?>
</tbody>
		</table>


	</div>
</div>
<center>
<?php

echo $this->paginationControl($orders, 'Sliding', '/layout/OrderPaginator.phtml', array(
    'action' => "index",
    'route' => "order_admin",
    'order_by' => $order_by,
    'order' => $order
));
?>
</center>